package com.gaswell.controller;

import com.gaswell.common.log.LogAnnotation;
import com.gaswell.pojo.ALLQj;
import com.gaswell.service.ALLQjService;
import com.gaswell.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName DQDJController
 * @Author xiaow
 * @DATE 2023/3/7 11:08
 **/
@RestController
@RequestMapping("/allqj")
@Api(tags = "气井  视图")
public class ALLQJController {
    @Autowired
    ALLQjService ALLQjService;
    @GetMapping("/test")
    @ApiOperation(value="测试")
    @LogAnnotation(module = "测试",operator = "测试")
    public Result test(String userName){
        List<ALLQj> list = ALLQjService.list();
        return Result.success(list);
    }
}
